import Router from 'next/router'

export default ({href, children}) => (
  <span style={{display: 'inline-block'}} onClick={() => href && Router.push(href)}>
    {children}
  </span>
)
